package com.holy.sh.module_base_mvp.entity;



import com.bigkoo.pickerview.model.IPickerViewData;


import java.util.List;

/**
 * Created by pc on 2018/5/8.
 */

public class Pca implements IPickerViewData {
    /**
     * region_id : 10
     * region_name : 上海
     * child : [{"region_id":"109","region_name":"上海市","child":[{"region_id":"1215","region_name":"黄浦区","child":[]},{"region_id":"1216","region_name":"卢湾区","child":[]},{"region_id":"1217","region_name":"徐汇区","child":[]},{"region_id":"1218","region_name":"长宁区","child":[]},{"region_id":"1219","region_name":"静安区","child":[]},{"region_id":"1220","region_name":"普陀区","child":[]},{"region_id":"1221","region_name":"闸北区","child":[]},{"region_id":"1222","region_name":"虹口区","child":[]},{"region_id":"1223","region_name":"杨浦区","child":[]},{"region_id":"1224","region_name":"闵行区","child":[]},{"region_id":"1225","region_name":"宝山区","child":[]},{"region_id":"1226","region_name":"嘉定区","child":[]},{"region_id":"1227","region_name":"浦东新区","child":[]},{"region_id":"1228","region_name":"金山区","child":[]},{"region_id":"1229","region_name":"松江区","child":[]},{"region_id":"1230","region_name":"青浦区","child":[]},{"region_id":"1231","region_name":"南汇区","child":[]},{"region_id":"1232","region_name":"奉贤区","child":[]},{"region_id":"1233","region_name":"川沙区","child":[]},{"region_id":"1234","region_name":"崇明县","child":[]},{"region_id":"1235","region_name":"其它区","child":[]}]}]
     */

    private String areaId;
    private String areaName;
    private List<ChildBeanX> child;

    public String getRegion_id() {
        return areaId;
    }

    public void setRegion_id(String region_id) {
        this.areaId = region_id;
    }

    public String getRegion_name() {
        return areaName;
    }

    public void setRegion_name(String region_name) {
        this.areaName = region_name;
    }

    public List<ChildBeanX> getChild() {
        return child;
    }

    public void setChild(List<ChildBeanX> child) {
        this.child = child;
    }

    @Override
    public String getPickerViewText() {
        return areaName;
    }

    public static class ChildBeanX implements IPickerViewData {
        /**
         * region_id : 109
         * region_name : 上海市
         * child : [{"region_id":"1215","region_name":"黄浦区","child":[]},{"region_id":"1216","region_name":"卢湾区","child":[]},{"region_id":"1217","region_name":"徐汇区","child":[]},{"region_id":"1218","region_name":"长宁区","child":[]},{"region_id":"1219","region_name":"静安区","child":[]},{"region_id":"1220","region_name":"普陀区","child":[]},{"region_id":"1221","region_name":"闸北区","child":[]},{"region_id":"1222","region_name":"虹口区","child":[]},{"region_id":"1223","region_name":"杨浦区","child":[]},{"region_id":"1224","region_name":"闵行区","child":[]},{"region_id":"1225","region_name":"宝山区","child":[]},{"region_id":"1226","region_name":"嘉定区","child":[]},{"region_id":"1227","region_name":"浦东新区","child":[]},{"region_id":"1228","region_name":"金山区","child":[]},{"region_id":"1229","region_name":"松江区","child":[]},{"region_id":"1230","region_name":"青浦区","child":[]},{"region_id":"1231","region_name":"南汇区","child":[]},{"region_id":"1232","region_name":"奉贤区","child":[]},{"region_id":"1233","region_name":"川沙区","child":[]},{"region_id":"1234","region_name":"崇明县","child":[]},{"region_id":"1235","region_name":"其它区","child":[]}]
         */

        private String areaId;
        private String areaName;
        private List<ChildBean> child;

        public String getRegion_id() {
            return areaId;
        }

        public void setRegion_id(String region_id) {
            this.areaId = region_id;
        }

        public String getRegion_name() {
            return areaName;
        }

        public void setRegion_name(String region_name) {
            this.areaName = region_name;
        }

        public List<ChildBean> getChild() {
            return child;
        }

        public void setChild(List<ChildBean> child) {
            this.child = child;
        }

        @Override
        public String getPickerViewText() {
            return areaName;
        }

        public static class ChildBean implements IPickerViewData {
            /**
             * region_id : 1215
             * region_name : 黄浦区
             * child : []
             */

            private String areaId;
            private String areaName;
            private List<?> child;

            public String getRegion_id() {
                return areaId;
            }

            public void setRegion_id(String region_id) {
                this.areaId = region_id;
            }

            public String getRegion_name() {
                return areaName;
            }

            public void setRegion_name(String region_name) {
                this.areaName = region_name;
            }

            public List<?> getChild() {
                return child;
            }

            public void setChild(List<?> child) {
                this.child = child;
            }

            @Override
            public String getPickerViewText() {
                return areaName;
            }
        }
    }








    /* *//**
     * v : 110000
     * n : 北京市
     * c : [{"v":"110100","n":"市辖区","c":[{"v":"110101","n":"东城区"},{"v":"110102","n":"西城区"},{"v":"110105","n":"朝阳区"},{"v":"110106","n":"丰台区"},{"v":"110107","n":"石景山区"},{"v":"110108","n":"海淀区"},{"v":"110109","n":"门头沟区"},{"v":"110111","n":"房山区"},{"v":"110112","n":"通州区"},{"v":"110113","n":"顺义区"},{"v":"110114","n":"昌平区"},{"v":"110115","n":"大兴区"},{"v":"110116","n":"怀柔区"},{"v":"110117","n":"平谷区"},{"v":"110118","n":"密云区"},{"v":"110119","n":"延庆区"}]}]
     *//*

    private String v="";
    private String n="";
    private List<CBeanX> c;

    public String getV() {
        return v;
    }

    public void setV(String v) {
        this.v = v;
    }

    public String getN() {
        return n;
    }

    public void setN(String n) {
        this.n = n;
    }

    public List<CBeanX> getC() {
        return c;
    }

    public void setC(List<CBeanX> c) {
        this.c = c;
    }

    @Override
    public String getPickerViewText() {
        return n;
    }

    public static class CBeanX implements IPickerViewData{
        *//**
     * v : 110100
     * n : 市辖区
     * c : [{"v":"110101","n":"东城区"},{"v":"110102","n":"西城区"},{"v":"110105","n":"朝阳区"},{"v":"110106","n":"丰台区"},{"v":"110107","n":"石景山区"},{"v":"110108","n":"海淀区"},{"v":"110109","n":"门头沟区"},{"v":"110111","n":"房山区"},{"v":"110112","n":"通州区"},{"v":"110113","n":"顺义区"},{"v":"110114","n":"昌平区"},{"v":"110115","n":"大兴区"},{"v":"110116","n":"怀柔区"},{"v":"110117","n":"平谷区"},{"v":"110118","n":"密云区"},{"v":"110119","n":"延庆区"}]
     *//*

        private String v="";
        private String n="";
        private List<CBean> c;

        public String getV() {
            return v;
        }

        public void setV(String v) {
            this.v = v;
        }

        public String getN() {
            return n;
        }

        public void setN(String n) {
            this.n = n;
        }

        public List<CBean> getC() {
            return c;
        }

        public void setC(List<CBean> c) {
            this.c = c;
        }

        @Override
        public String getPickerViewText() {
            return n;
        }

        public static class CBean implements IPickerViewData{
            *//**
     * v : 110101
     * n : 东城区
     *//*

            private String v="";
            private String n="";

            public String getV() {
                return v;
            }

            public void setV(String v) {
                this.v = v;
            }

            public String getN() {
                return n;
            }

            public void setN(String n) {
                this.n = n;
            }

            @Override
            public String getPickerViewText() {
                return n;
            }
        }
    }*/
}
